rules for finding cf and pi